<?php
  include("core/config/init.php");
  include("core/includes/database/mysql.php");
  include("core/includes/ffamax_config.php");
  error_reporting(-1);
  ini_set("display_errors", 0);
  $far_1 = array("core/config/connect.inc.php"
  ,"core/config/language_list.php"
  ,"core/config/paths.inc.php"
  ,"core/classes/class.virtual.shippingratecalculator.php"
  ,"core/classes/class.virtual.paymentmodule.php"
  ,"core/classes/class.xmlnodex.php");

  $far_2 = glob("core/functions/*.php"); 
  $far_3 = glob("core/functions/admin/*.php");
  $far = array_merge($far_1,$far_2,$far_3);
  $cfar = count($far);
  for ($n=0; $n<$cfar; $n++) include ($far[$n]);
  db_connect(DB_HOST, DB_USER, DB_PASS) or die(ERROR_DB_INIT);
  db_select_db(DB_NAME) or die(db_error());
  settingDefineConstants();
  $_POST = xStripSlashesGPC($_POST);
  $_GET = xStripSlashesGPC($_GET);
  $_COOKIE = xStripSlashesGPC($_COOKIE);

  
require ("core/smarty/smarty.class.php");
$smarty = new Smarty; //core smarty object

$cats = catGetCategoryCListMin();
$smarty->assign( "cats", $cats );

$sitemap['static'] = 'https://sun-store.ru/pi
https://sun-store.ru/product_1481.html
https://sun-store.ru/page_1.html
https://sun-store.ru/page_2.html
';




export_sitemap($sitemap['static']);
?>